package com.lemon.stock.viewmodel

import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import androidx.lifecycle.ViewModel
import com.lemon.stock.util.AuthManager

class MineViewModel: ViewModel() {
    var user by mutableStateOf(AuthManager.user.value)

    init {
        AuthManager.user.observeForever{
            user = it?.copy()
        }
    }
}